<% for product in hot_list  %>
  <li>
    <%= render :partial =>'/products/product_detail',:object=>product%>


    <a href="javascript:void(0);" onclick="addToCart(<%=product.id%>);" >
      <img src="/images/add_to_cart.gif" alt="加入购物车" />
    </a>
   
    <%if editor?%>
      <div class="action_link">
        <div>
          <%= link_to '编辑', [:edit,product],:class=>'action_edit' %>
          <%= link_to "删除",product, :confirm => '确定删除?', :method => :delete,:title=>'删除',:class=>'action_delete' %>
        </div>
      </div>
    <%end%>

  </li>
<%  end %>
